<?php
$this->pageTitle = Yii::app()->name . ' - Login';
?>

<div class="span6 offset3">
    <div class="row">
        <div class="span3">
            <h1 id="logo">PriceMon</h1>
        </div>
    </div>

    <div id="login">
        <?php
        $form = $this->beginWidget('CActiveForm', array(
            'id' => 'login-form',
                ));
        ?>

        <h2>Sign In</h2>
        
        <?php echo $form->errorSummary($model, null, null, array('class' => 'alert alert-error')); ?>
        
        <fieldset>
            <div class="control-group">
                <label for="username">Username</label>
                <div class="controls">
                    <?php echo $form->textField($model, 'username'); ?>
                </div>
            </div>

            <div class="control-group">
                <label for="password">Password</label>
                <div class="controls">
                    <?php echo $form->passwordField($model, 'password'); ?>
                </div>
            </div>
        </fieldset>

        <div class="form-actions">
            <?php echo CHtml::htmlButton('Sign In', array('class' => 'btn btn-large btn-primary', 'type' => 'submit')); ?>
        </div>

        <hr>

        <?php echo CHtml::link('Forgot your password?', array('app/forgot'), array('class' => 'forgot-password')); ?>

        <?php $this->endWidget(); ?>
    </div>
</div>
